﻿using System;
using System.Data;
using System.Collections.Generic;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
namespace OgilvyOne.BLL
{
    public class LogManageBLL
    {
        public DataSet GetLog(string strWhere)
        {
            return LogManageFactory.create().GetLog(strWhere);
        }
        public void insert(LogManage strLog)
        {
            LogManageFactory.create().insert(strLog);
        }

        /// <summary>
        /// 删除日志
        /// </summary>
        /// <param name="starttime">开始时间</param>
        /// <param name="endtime">结束时间</param>
        public void Del(string starttime, string endtime)
        {
            LogManageFactory.create().Del(starttime, endtime);
        }
        /// <summary>
        /// 设置日志记录开关
        /// </summary>
        public void SwitchsLogs(LogSwitchs ls)
        {
            LogManageFactory.create().SwitchsLogs(ls);
        }

        /// <summary>
        /// 日志设置状态查询
        /// </summary>
        public LogSwitchs selectLogsSwitch()
        {
          return  LogManageFactory.create().selectLogsSwitch();
        }
    }
}
